package com.yan.demo;

public class OOPDemo2 {
    public static void main(String[] args) {
       /* Zi zi = new Zi();
        zi.method();
        zi.ziMethod();
        zi.fuMethod();*/

        Fu fu = new Fu();
        Fu.method();
        //Fu.ziMethod();
        Fu.fuMethod();
/*
        Fu fu = new Zi();
        Fu.method();
        //Fu.ziMethod();
        Fu.fuMethod();*/
    }
}

class Fu{
    public int num = 10;
    public int fuNum = 100;

    public static void method(){
        System.out.println("这是父类中的静态method方法");
    }

    public static void fuMethod(){
        System.out.println("这是父类的静态fuMethod方法");
    }
}

class Zi extends Fu{
    public int num = 10;
    public int ziNum = 200;

    public static void method(){
        System.out.println("这是zi类中的静态method方法");
    }

    public static void ziMethod(){
        System.out.println("这是zi类的静态ziMethod方法");
    }
}
